﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class BUS_NguoiNhan
    {
        DAO_NguoiNhan dao_nguoinhan;
        
        public BUS_NguoiNhan()
        {
            dao_nguoinhan = new DAO_NguoiNhan();
        }

        public string GetTenNN(int maNN)
        {
            return dao_nguoinhan.GetTenNN(maNN);
        }

        public int Insert(DTO_NguoiNhan receiver)
        {
            if (receiver.DiaChi == null)
                receiver.DiaChi = "Lầu 2, 180-182 Lý Chính Thống, Q.3";
            return dao_nguoinhan.Insert(receiver);
        }

        public void Delete(int ma)
        {
            dao_nguoinhan.Delete(ma);
        }

    }
}
